home *** CD-ROM | disk | FTP | other *** search
-
-
-
- KKKKLLLLOOOOGGGG((((7777)))) KKKKLLLLOOOOGGGG((((7777))))
-
-
-
- NNNNAAAAMMMMEEEE
- klog - kernel error logging interface
-
- DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
- Minor device 0 of the _k_l_o_g driver is the interface between a process and
- the kernel's error logging mechanism. When this device is open, messages
- printed by the kernel, which normally appear only in the system console
- window, also are buffered by the _k_l_o_g driver. The data obtained by
- reading from this driver are the text of the kernel messages. The driver
- may be opened only for reading by a single process. Each read causes the
- requested number of bytes to be retrieved; the request is truncated if
- the read request is for more than the data currently available.
-
- Normally, this device is opened and read by _s_y_s_l_o_g_d(1M), the system
- logging daemon.
-
- This special device supports the following _o_p_e_n(2) flags:
-
- OOOO____NNNNDDDDEEEELLLLAAAAYYYY
- When set a read will not block if no data is present. If not
- set, a read will block until information becomes available.
-
- Each _i_o_c_t_l(2) call that this special device supports has the form:
-
- iiiiooooccccttttllll((((ffffdddd,,,, ccccmmmmdddd,,,, aaaarrrrgggg))))
-
- where the format and meaning of _a_r_g vary with the specified _c_m_d as
- described below:
-
- FFFFIIIIOOOONNNNRRRREEEEAAAADDDD
- Returns the number of bytes currently available to read to the
- area pointed to by _a_r_g, where _a_r_g is treated as a pointer to a
- variable of type ssssiiiizzzzeeee____tttt.
-
- FFFFIIIIOOOONNNNBBBBIIIIOOOO
- Enables or disables non-blocking mode, according to the boolean
- value supplied as _a_r_g. Enabling this mode has the same affect
- as the OOOO____NNNNDDDDEEEELLLLAAAAYYYY flag for _o_p_e_n(2).
-
- FFFFIIIIOOOOAAAASSSSYYYYNNNNCCCC
- Enables or disables asynchronous mode, according to the boolean
- value supplied as _a_r_g. When asynchronous mode is enabled, the
- process group associated with the open of the special device
- receives a SSSSIIIIGGGGIIIIOOOO signal when data is available to be read.
-
- TTTTIIIIOOOOCCCCSSSSPPPPGGGGRRRRPPPP
- Set the process group for use with asynchronous I/O (FFFFIIIIOOOOAAAASSSSYYYYNNNNCCCC).
- For this command, _a_r_g should contain the process group id.
-
- TTTTIIIIOOOOCCCCGGGGPPPPGGGGRRRRPPPP
- Returns the current process group to the area pointed to by
- _a_r_g, where _a_r_g is treated as a pointer to a variable of type
-
-
-
- PPPPaaaaggggeeee 1111
-
-
-
-
-
-
- KKKKLLLLOOOOGGGG((((7777)))) KKKKLLLLOOOOGGGG((((7777))))
-
-
-
- iiiinnnntttt.
-
- FFFFIIIILLLLEEEESSSS
- /dev/klog special file
-
- SSSSEEEEEEEE AAAALLLLSSSSOOOO
- open(2), ioctl(2), syslogd(1M)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- PPPPaaaaggggeeee 2222
-
-
-
-